import { NameSpace } from 'utils';
import exceed from 'utils/apimap';

const ns = NameSpace('organization');
export const RECEIVE_DATA = ns('RECEIVE_DATA');

export function getPublicData() {
  return (dispatch) => {
    exceed
      .forceFetch({
        api: 'demo.get',
      })
      .then((result) => {
        dispatch({
          type: RECEIVE_DATA,
          data: result,
        });
      });
  };
}
